<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <div id="app">
   <button @click="onclick">单击事件</button>
   <button @mouseover="onMouseover">鼠标经过事件</button>
   <button v-on="{mouseenter:onEnter,mouseleave:onOut}">鼠标进入、离开事件</button>
    </div>
</head>
<body>
    <script type="text/javaScript"  charset="UTF-8" src="../JS文件/vue.js"></script>
    <script>
        var vm=new Vue({
            el:'#app',
            data:{
               
            },
            methods:{
                onclick:function(){
                    console.log("clicked")
                },
                onMouseover:function(){
                    console.log("mouseover")
                },
                onEnter:function(){
                    console.log("entered")
                },
                onOut:function(){
                    console.log("outed")
                },
            }
        });
    </script>
</body>
</html>